using UnityEngine;
using UnityEngine.Events;
using UnityEngine.PlayerLoop;

public abstract class BasePanel : MonoBehaviour
{
    // Start is called once before the first execution of Update after the MonoBehaviour is created
    public virtual void Awake() {
        Init();
    }
    public abstract void Init();
    public virtual void ShowPanel()
    {
        if(this != null && gameObject != null)
        gameObject.SetActive(true);
    }
    public virtual void HidePanel(UnityAction unityAction)
    {
        if(this != null && gameObject != null)
        gameObject.SetActive(false);

        Debug.Log("hide ");
    }
}
